";
$html .= "";
include 'toolbox.php';
$html .= toolbox($token);
$html .= " ";
$html .= "";
$html .= " | ";
$html .= " | ";
$html .= "";
if (isset($token)) {
if ($tool == 'DC editor') {
include 'dc-edit.php';
} elseif ($tool == 'Polar') {
include 'polar.php';
} elseif ($tool == 'Navigation') {
include 'navigation.php';
} elseif ($tool == 'Weather') {
include 'weather.php';
} elseif ($tool == 'Chart and Info') {
include 'notice.php';
} else {
include 'home.php';
}
if (isset($tool)) {
setcookie("toolbox_" . $id . "[tool]", $tool, time() + 24 * 3600, "/sailonline/toolbox");
}
} else {
include 'home.php';
}
$html .= tool($race, $boat, $token);
$html .= " | ";
$html .= "
";
$html .= "